package com.gss.entity.sys.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gss.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author DYang
 * @date 2023/5/31
 */
@ApiModel("用户管理")
@Data
@TableName("sys_user")
public class SysUser extends BaseEntity {

    @ApiModelProperty("自增长id")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("真实姓名")
    private String realName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("密码盐")
    private String salt;

    @ApiModelProperty("性别")
    private Integer sex;

    @ApiModelProperty("电话号码")
    private String phoneNum;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("头像")
    private String headImg;

    @ApiModelProperty("登录ip")
    private String loginIp;

    @ApiModelProperty("最后一次登录时间")
    private Date lastLoginTime;

    @ApiModelProperty("删除标记(0: 正常 1:回收站 4:删除)")
    private Integer del;
}
